﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace boda.net.wpf.core.Ioc
{

    public enum LifeTime
    {
        Singleton,
        Transient
    }

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ExposedServiceAttribute : Attribute
    {
        public LifeTime LifeTime { get; set; }
        public bool AutoInitialize { get; set; }
        public Type[] Types { get; set; }

        public ExposedServiceAttribute(bool autoInitialize, LifeTime lifeTime = LifeTime.Transient, params Type[] types)
        {
            LifeTime = lifeTime;
            AutoInitialize = autoInitialize;
            Types = types;
        }
    }
}
